package com.amado.course14.service;

import com.amado.course14.entity.Student;

/**
 * 学生的业务逻辑
 * @author 王玉龙
 * @date 2018-06-12
 */
public class StudentService {
	private static Student[] studentArray =  new Student[100];
	private static int count;
	/**
	 * 添加，修改，删除
	 */
	public void addStudent(){
		Student  student = new Student();
		//设值 ，以前设值方式student.name="张三";
		student.setName("张三");
		//取值,以前取值方式student.name
		student.getName();
		studentArray[count++] = student;
	}
}
